package com.carrot.newsgallery.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carrot.newsgallery.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
     * mybatis面向接口编程的两个一致:
     * 1 映射文件的namespace要和mapper接口的全类名保持一致
     * 2 映射文件中sql语句的id要和mapper接口中的方法名一致
     */
    void createTable(String tableName);
}
